package com.shiliuzi.www.pojo.bo;

import com.shiliuzi.www.pojo.po.RecordType;
import com.shiliuzi.www.util.CommonUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RecordBo {
    private Integer id;
    private RecordTypeBo type;
    private Integer userId;
    private String userName;
    private Integer grade;
    private String number;
    private Date date;
    private String content;
    private String reason;
    private String money;
    private String comment;
    private Integer isCancel;
    private Integer isInfo;
    private String pathFile;

    public void setType(RecordType type) {
        CommonUtil commonUtil = new CommonUtil();
        this.type = commonUtil.copyProperties(type,RecordTypeBo.class);
    }
}
